//
//  ALFirstCell.m
//  Ummy.G
//
//  Created by 安林 on 16/9/30.
//  Copyright © 2016年 安林. All rights reserved.
//

#import "ALFirstCell.h"
#import "ALCollectionController.h"
#import "ALTicketController.h"
#import "ALMyMessageController.h"

@implementation ALFirstCell

- (void)awakeFromNib {
    self.backgroundColor = ALColor(38, 209, 188);
    self.ImgView.layer.cornerRadius = 22.5;
    self.ImgView.layer.masksToBounds = YES;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

}


#pragma mark "个人信息"的单击
- (IBAction)UpBtn:(UIButton *)sender {
    
    ALMyMessageController *collect = [[ALMyMessageController alloc]init];
    UINavigationController *na = [[UINavigationController alloc]initWithRootViewController:collect];
    [[UIApplication sharedApplication].keyWindow.rootViewController presentViewController:na animated:YES completion:nil];
}

#pragma mark "收藏"的单击
- (IBAction)RightBtn:(id)sender {
    
    ALCollectionController *collect1 = [[ALCollectionController alloc]init];
    UINavigationController *na1 = [[UINavigationController alloc]initWithRootViewController:collect1];
    
    [[UIApplication sharedApplication].keyWindow.rootViewController presentViewController:na1 animated:YES completion:nil];

    
}

#pragma mark "美团券"的单击
- (IBAction)LeftBtn:(UIButton *)sender {
    
    ALTicketController *collect2 = [[ALTicketController alloc]init];
    UINavigationController *na2 = [[UINavigationController alloc]initWithRootViewController:collect2];
    [[UIApplication sharedApplication].keyWindow.rootViewController presentViewController:na2 animated:YES completion:nil];
   
}

+(instancetype)loadALFirstCell{
    return [[[NSBundle mainBundle]loadNibNamed:@"ALFirstCell" owner:nil options:nil]firstObject];
}


@end
